<?php 
session_start();
include "biblioteca/funcao.php";

$sql_busca = "SELECT * FROM MANNING";
$res_busca = sql($sql_busca);
$i = 0;
while($linha = mysql_fetch_array($res_busca)){
    
    if (substr($linha['CODIGO'], 0, 3) == "BRA") {
    
        $sql2 = "DELETE FROM MANNING WHERE CODIGO='{$linha['CODIGO']}'";    
        sql($sql2); 
        
        echo $sql2."<br>";
        
    }

}
